#include "secondwin.h"
#include "ui_secondwin.h"
#include "thirdwin.h"

secondWin::secondWin(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::secondWin)
{
    ui->setupUi(this);
}

secondWin::~secondWin()
{
    delete ui;
}

void secondWin::on_nextBt_clicked()
{
    //创建第三个界面
    thirdWin *win = new thirdWin(this);
    win->show();

    this->hide();  //隐藏第二个界面
}

void secondWin::on_closeBt_clicked()
{
    //关闭第二个窗口，即关闭当前窗口
    this->close();
}
